/*
 * @Description: 
 * @Author: 张民鸿
 * @Date: 2021-10-18 10:50:17
 * @FilePath: /cloud-register-business/Users/zhang/Desktop/zhang/Cloud-Registration-Desk/src/reducers/examine.ts
 * @LastEditTime: 2023-04-03 14:03:43
 * @LastEditors: zhangminhong zhangminhong@zhujia360.com
 */
import { getGlobalTableState } from "@/utils/util";
export const GET_EXAMINE = Symbol("GET_EXAMINE");
export const SAVE_EXAMINE = Symbol("SAVE_EXAMINE");

export const SUBMIT_EXAMINE = Symbol("SUBMIT_EXAMINE");

const initState = {
  ...getGlobalTableState
};

const examine = (state = initState, action: Action) => {
  switch (action.type) {
    case SAVE_EXAMINE:
      return {
        ...state,
        ...action.data,
      };
    default:
      return state;
  }
};

export default examine;
